import request from '@/util/request'

export function queryTestCaseList(name, pageSize, pageNum) {

    return request({
        url: '/testCase?name='+ name + '&pageSize='+ pageSize + '&pageNum=' + pageNum ,
        method: 'get'
    })
}

export function saveTestCase(data) {

    return request({
        url: '/testCase',
        method: 'post',
        data: data
    })
}

export function updateTestCase(id, data) {

    return request({
        url: '/testCase/' + id,
        method: 'put',
        data: data
    })
}

export function deleteTestCase(id) {

    return request({
        url: '/testCase/' + id,
        method: 'delete'
    })
}